<?php
define('WEBPATH', realpath( __DIR__."/../"));
require WEBPATH."/lib_config.php";

$config['type'] = \Swoole\Database::TYPE_MYSQLi;
$config['host'] = '120.31.136.107';
$config['user'] ='root';
$config['password'] = 'd23a048282d9f0e3';
$config['database'] = 'pay_system_v5';
$config['timeout'] = 7;



$config['type'] = \Swoole\Database::TYPE_MYSQLi;
$config['host'] = '120.31.136.107';
$config['user'] ='root';
$config['password'] = 'd23a048282d9f0e3';
$config['database'] = 'pay_system_v5';


$db = new Swoole\Database($config);
$db->connect();
$res = $db->query("select * from pay_order limit 1");
var_dump($res->fetch());

